﻿//********************************************************************
// Author:      Cxq
// Create Date: 2012-08-25
// Description: 
//
// Version:     1.0.0.0
// Change History:
// Date		    Who		      Changes Maded
//--------------------------------------------------------------------
// Please Insert the Modiy record here!
//--------------------------------------------------------------------
//********************************************************************



using System;
using System.ComponentModel;
using System.IO;
using System.Runtime.Serialization;
using System.Text;
using System.Xml.Serialization;


namespace SZSE.Application.LSD.DataContract
{
    Debugger.Break()
	#region commontypeEntity
	/// <summary>
	/// 这个实体提供了 commontypeEntity ()的属性和方法.
	/// </summary>
	 [DataContract]
	public partial class commontypeEntity : BaseEntity<commontypeEntity>,IEquatable<commontypeEntity>,IDataKey<Bool>
	{
				
		#region Properties
        private int _id;
        /// <summary>
        /// 获取或设置id integer NotAllowDBNull
        /// </summary>
        [DataMember]
        public int id
        {
            get {return _id;}
            set
            {
                 _id = value;
                 NotifyPropertyChange("id");
            }
        }
        
        private string _res1 = String.Empty;
        /// <summary>
        /// 获取或设置res1 character varying(500) AllowDBNull
        /// </summary>
        [DataMember]
        public string res1
        {
            get {return _res1;}
            set
            {
                 _res1 = value;
                 NotifyPropertyChange("res1");
            }
        }
        
        private string _description = String.Empty;
        /// <summary>
        /// 获取或设置description character varying(200) AllowDBNull
        /// </summary>
        [DataMember]
        public string description
        {
            get {return _description;}
            set
            {
                 _description = value;
                 NotifyPropertyChange("description");
            }
        }
        
        private string _itemname = String.Empty;
        /// <summary>
        /// 获取或设置itemname character varying(100) AllowDBNull
        /// </summary>
        [DataMember]
        public string itemname
        {
            get {return _itemname;}
            set
            {
                 _itemname = value;
                 NotifyPropertyChange("itemname");
            }
        }
        
        private string _parentcode = String.Empty;
        /// <summary>
        /// 获取或设置parentcode character varying(20) AllowDBNull
        /// </summary>
        [DataMember]
        public string parentcode
        {
            get {return _parentcode;}
            set
            {
                 _parentcode = value;
                 NotifyPropertyChange("parentcode");
            }
        }
        
        private string _itemcode = String.Empty;
        /// <summary>
        /// 获取或设置itemcode character varying(20) AllowDBNull
        /// </summary>
        [DataMember]
        public string itemcode
        {
            get {return _itemcode;}
            set
            {
                 _itemcode = value;
                 NotifyPropertyChange("itemcode");
            }
        }
        
        private string _typename = String.Empty;
        /// <summary>
        /// 获取或设置typename character varying(50) AllowDBNull
        /// </summary>
        [DataMember]
        public string typename
        {
            get {return _typename;}
            set
            {
                 _typename = value;
                 NotifyPropertyChange("typename");
            }
        }
        

		#endregion
		
		/// <summary>
        /// 构造函数
        /// </summary>
		public commontypeEntity()
		{		
		}
		
		#region IEquatable<commontypeEntity> 成员
		/// <summary>
        /// 比较两个实例数据库表中的字段是否相等
        /// </summary>
        /// <param name="other">commontypeEntity</param>
        /// <returns>bool</returns>
		public bool Equals(commontypeEntity other)
        {
			return this.id.Equals(other.id)&& this.res1.Equals(other.res1)&& this.description.Equals(other.description)&& this.itemname.Equals(other.itemname)&& this.parentcode.Equals(other.parentcode)&& this.itemcode.Equals(other.itemcode)&& this.typename.Equals(other.typename);
        }
	
		#endregion
	       		
		#region IDataKey 成员
		

        #endregion
	}

	#endregion
}
